﻿using AspectCore.DynamicProxy;

namespace TK.Common.Sample.AspectcoreInterceptor
{
    /// <summary>
    /// 测试拦截器
    /// </summary>
    public class TestInterceptor : AbstractInterceptor
    {
        /// <summary>
        /// Invoke
        /// </summary>
        public override async Task Invoke(AspectContext context, AspectDelegate next)
        {
            var async = context.IsAsync();
            var proxy = context.IsProxy();
            await next(context);
        }
    }
}
